package com.osdp.uc.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.osdp.uc.entity.UcTitle;
import com.osdp.uc.vo.UcTitleVo;

import java.util.List;

/**
 * 职务服务
 */
public interface IUcTitleService extends IService<UcTitle> {
    /**
     * 职务信息分页查询
     * @param titleVo
     * @param page
     * @return
     */
    IPage<UcTitleVo> pageList(UcTitleVo titleVo, Page<UcTitle> page);

    /**
     *
     * @param titleVo
     * @return
     */
    boolean insertTitile(UcTitleVo titleVo);

    /**
     * 修改职务
     * @param titleVo
     * @return
     */
    boolean updateTitile(UcTitleVo titleVo);

    /**
     *
     * @param id
     * @return
     */
    UcTitleVo getByTitileId(String id);

    /**
     *
     * @param id
     * @return
     */
    boolean deleteTitile(String id);

    /**
     * 查询所有职务信息
     * @param titleName
     * @param titleCode
     * @return
     */
    List<UcTitleVo> queryAllTitle(String titleName,String titleCode);

}
